package com.syyo.gulimall.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.syyo.gulimall.admin.domain.entity.SysUser;
import com.syyo.gulimall.admin.domain.excel.UserExport;
import com.syyo.gulimall.admin.domain.req.UserReq;
import com.syyo.gulimall.admin.domain.resp.UserResp;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wang
 * @since 2020-07-17
 */
public interface SysUserService extends IService<SysUser> {

    int add(UserReq req, Integer deptId);

    int del(Integer id, Integer deptId);

    int edit(UserReq req, Integer deptId);

    UserResp findOne(Integer id);

    Map<String, Object> findAll(Integer pageNum, Integer pageSize, UserReq req, Integer deptId);

    Map<String, Object> importUser(MultipartFile file) throws IOException;

    Object exportUser(UserExport userExport, HttpServletResponse response);

    int editPwd(UserReq req);

    int editAvatar(MultipartFile file);
}
